function axiosSet({ $axios }) {
  $axios.onRequest((config) => {
    config.headers.common['API-Authorization'] = '854223403';
  });

  $axios.onError((error) => {
    // eslint-disable-next-line
    const code = parseInt(error.response && error.response.status);
    console.log(`error---code:${code}`);
  });
}

export default axiosSet;
